package com.wmyg.antifake.service;

import com.github.pagehelper.PageInfo;
import com.wmyg.antifake.bean.Factory;

import java.util.List;

public interface FactoryService {

    public int delete(int id);
    /** 增加*/
    public int insert(Factory factory);
    /** 更新*/
    public int update(Factory factory);
    /** 查询单个*/
    public Factory selectById(Integer factoryId);
    public List<Factory> findAll();
    PageInfo<Factory> selectFindAll(Factory factory);

    int insertOrUpdate(Factory factory);
}
